package demo;

import io.lettuce.core.RedisClient;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisCommands;

public class RedisDemo {
    public static void main(String[] args) {
        RedisClient client = RedisClient.create("redis://10.203.130.4:6379/0");

        StatefulRedisConnection<String, String> connection = client.connect();
        RedisCommands<String, String> syncCommands = connection.sync();

        System.out.println(syncCommands.get("user"));

        connection.close();
        client.shutdown();

    }
}

